

#ifndef _BSP_CONFIG_H_
#define _BSP_CONFIG_H_

/*-------------------------------------------------------------------------
    RS485
-------------------------------------------------------------------------*/

#define RS485_DIR_GP	GPIOA
#define RS485_DIR_PIN	GPIO_PIN_8


/*-------------------------------------------------------------------------
    BUZZER
-------------------------------------------------------------------------*/
/// 1.7----> 0.6
#define BUZ_GP		GPIOC
#define BUZ_PIN		GPIO_PIN_3

/*-------------------------------------------------------------------------
    LED
-------------------------------------------------------------------------*/
//	1.3---> 4.5

//#define LED_B_GP	GPIOA		
//#define LED_B_PIN	GPIO_PIN_13

#define LED_G_GP	GPIOA
#define LED_G_PIN	GPIO_PIN_9

#define LED_W_GP	GPIOA
#define LED_W_PIN	GPIO_PIN_10

//#define LED_R_GP	GPIOB
//#define LED_R_PIN GPIO_PIN_3

/*-------------------------------------------------------------------------
    W5500
-------------------------------------------------------------------------*/

#define W5500_CS_GP		GPIOA
#define W5500_CS_PIN	GPIO_PIN_4

#define W5500_RST_GP	GPIOC
#define W5500_RST_PIN	GPIO_PIN_5

#define W5500_INT_GP	GPIOC
#define W5500_INT_PIN	GPIO_PIN_4

#define W5500_SpiId		0

/*-------------------------------------------------------------------------
    W25Q
-------------------------------------------------------------------------*/

#define W25Q_CS_GP		GPIOB
#define W25Q_CS_PIN		GPIO_PIN_12

#define W25Q_SpiId		1

/*-------------------------------------------------------------------------
    RFIO
-------------------------------------------------------------------------*/
#define RFIO_NSS_GP			GPIOB
#define RFIO_NSS_PIN		GPIO_PIN_0

#define RFIO_RST_GP			GPIOB
#define RFIO_RST_PIN		GPIO_PIN_9
	
#define RFIO_SpiId			0

/*-------------------------------------------------------------------------
    WG
-------------------------------------------------------------------------*/

#define WG_D0_GP	GPIOB
#define WG_D0_PIN	GPIO_PIN_0

#define WG_D1_GP	GPIOC
#define WG_D1_PIN	GPIO_PIN_6


#define SIM_VCC1_GP		GPIOB
#define SIM_VCC1_PIN	GPIO_PIN_13

#define SIM_VCC2_GP		GPIOB
#define SIM_VCC2_PIN	GPIO_PIN_14

#define RESET_BT_GP		GPIOC
#define RESET_BT_PIN	GPIO_PIN_13

#define BT_RTS_GP		GPIOC
#define BT_RTS_PIN		GPIO_PIN_14

#define BT_CTS_GP		GPIOC
#define BT_CTS_PIN		GPIO_PIN_15

/*-------------------------------------------------------------------------
    WG IN
-------------------------------------------------------------------------*/

//#define WG_IN_D0_GP		GPIOA
//#define WG_IN_D0_PIN	GPIO_PIN_11

//#define WG_IN_D1_GP		GPIOA
//#define WG_IN_D1_PIN	GPIO_PIN_12
/*-------------------------------------------------------------------------
    DOOR
-------------------------------------------------------------------------*/
#define DOOR_GP		GPIOC
#define DOOR_PIN	GPIO_PIN_8

/*-------------------------------------------------------------------------
    ALARM
-------------------------------------------------------------------------*/
//#define ALARM_OUT_GP		GPIOB
//#define ALARM_OUT_PIN		GPIO_PIN_8

//#define ALARM_SIGNAL_GP		GPIOC
//#define ALARM_SIGNAL_PIN	GPIO_PIN_13

/*-------------------------------------------------------------------------
    SWITCH
-------------------------------------------------------------------------*/

#define SWITCH_GP		GPIOA
#define SWITCH_PIN	GPIO_PIN_12
/*-------------------------------------------------------------------------
    MAG
-------------------------------------------------------------------------*/
#define MAG_GP			GPIOA
#define MAG_PIN			GPIO_PIN_8
/*-------------------------------------------------------------------------
    FIRE
-------------------------------------------------------------------------*/
//#define FIRE_GP			GPIOC
//#define FIRE_PIN		GPIO_PIN_7

#endif


